package satir.testcase.cell;


import junit.framework.TestCase;
import junitx.util.PrivateAccessor;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import satir.card.Deck;
import satir.cell.ActCell;

public class ActCell_ActCell_1 extends TestCase{

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Step number : 1
	 * Goal: Set up the act cell configuration
	 */
	@Test
	public void testActCardIsNotNull() {
		ActCell ac = new ActCell(7, 5, '*', '|', new Deck());
		
		try {
			String output = ((Integer)PrivateAccessor.getField(ac, "width")).toString();
			output += ((Integer)PrivateAccessor.getField(ac, "height")).toString();
			output += ((Character)PrivateAccessor.getField(ac, "borderHorizonal")).toString();
			output += ((Character)PrivateAccessor.getField(ac, "borderVertical")).toString();
			output += ((String)PrivateAccessor.getField(ac, "cellLabel"));
			assertEquals("75*|Act", output);
		} catch (NoSuchFieldException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
